package com.newtouch.bxzs.common.base;

/**
 * 接口统一返回参数枚举
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020年12月11日</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author Amour
 *
 * @version 1.0.0
 * @since 1.0.0
 */
public enum BaseErrorEnum implements BaseErrorInfoInterface {

	// 数据操作错误定义
	SUCCESS("200", "成功!"),
	BODY_NOT_MATCH("400", "请求的数据格式不符!"),
	SIGNATURE_NOT_MATCH("401", "请求的数字签名不匹配!"),
	NOT_FOUND("404", "未找到该资源!"),
	INTERNAL_SERVER_ERROR("500","服务器内部错误!"),
	SERVER_BUSY("503", "服务器正忙，请稍后再试!"),
	REQUEST_METHOD_SUPPORT_ERROR("40001", "当前请求方法不支持"),
	REQUEST_DATA_NULL("200904", "当前请求参数为空!"),
	USER_NOT_EXISTS("10010", "该用户不存在!"),
	USER_NOT_PERMISSION("10041","用户权限不足!"),
	USER_INVALID("401","当前登录信息已失效,请重新登录！"),
	PASSWORD_ERROR("10011", "密码错误"),
	POSITION_IS_IN_USE("10012", "岗位在使用中,不能被删除"),
	ROLE_IS_IN_USE("10013", "角色在使用中,不能被删除"),
	ENABLE_USE("10014", "该数据处于使用状态,不能被删除或修改!"),
	PUBLISH_STATUS("10015", "该数据处于发布状态,不允许删除或修改!"),
	FILE_TYPE_ERROR("10016","文件格式不对,仅支持PDF格式!"),
	PUBLISH_OVER_LIMIT("10017","发布失败,已达上限!"),
	REQUIRED_ITEM_NULL("10018", "必传项为空！"),
	REQUEST_PARAMETER_ERROR("10019", "请求参数错误！"),
	FIELD_CANNOT_MODIFY("10020", "当前客户类型无法修改此字段！"),
	CANNOT_MODIFY("10021", "当前客户类型无法进行此操作！"),
	DATA_EXISTS("10022", "已存在相同数据！"),
	FILE_UPLOAD_DEFULT("100001","附件上传失败!"),
	USER_NAME_LOCK("100002","该账号已被锁定!"),
	NOTIFICATION_IS_REVOKED("100003","该消息已被撤销!"),
	CERTIFICATE_NUMBER_ERROR("100004","证件号输入不合规,请重新输入!"),
	SYSTEM_PARAM_ERROR("100005","系统参数输入不合规,请重新输入!"),
	FILE_FORMAT_ERROR("10023","文件格式错误!"),
	PUBLISHED_COURSES_CANNOT_DELETE("10024","已发布的课程不允许删除!"),
	REQUEST_NETWORK_PARAMETER_ERROR("10025","接口地址格式错误!"),
	CUSTOMER_PERIOD("10025","该客户在保护期,不允许推送!"),
	NO_CUSTOMER_ANALYSIS_INFORMATION("10027","暂无客户分析信息"),
	NO_SELF_BUILT_DATA("10028","不是自建数据，不能删除或修改!"),
	HAND_PASS_ERROR("10029","手势密码不符合规则"),
	SATISFIED_POLICY("10030","该客户满足决策条件，不允许推送！"),
	PASSWORD_DIFFERENT("10031","两次密码不一致"),
	NO_HAND_PASS("10032","未设置手势密码!"),
	AUTHENTICATION("10033","认证失败");
	/**
	 * 错误码
	 */
	private String resultCode;
	/**
	 * 错误描述
	 */
	private String resultMsg;



	BaseErrorEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

	@Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }

}
